package com.example.product_practices.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.product_practices.domain.Groups;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.transaction.annotation.Transactional;

@Mapper
@Transactional(rollbackFor = Exception.class)
public interface GroupsMapper extends BaseMapper<Groups> {
    @Select("select  max(id) from groups")
    public Integer maxGroupId ();
}
